import request from "@/utils/request";

// 获取获奖成果列表
export function getPersonDetails(data) {
  return request({
    url: "/kyry/personDetails",
    method: "post",
    data: data,
  });
}

// 根据负责人id和项目状态查询个人项目列表
export function getProjectByUser(data) {
  return request({
    url: "/achievement/relyProject/getProjectByUser",
    method: "post",
    data: data,
  });
}

// 新增或者编辑保存成果依托项目关系
export function relyProjectSave(data) {
  return request({
    url: "/achievement/relyProject/save",
    method: "post",
    data: data,
  });
}

// 根据成果id查询成果依托项目列表
export function getByProductId(id) {
  return request({
    url: "/achievement/relyProject/getByProductId/" + id,
    method: "get",
  });
}

// 个人所有成果分组统计
export function getAllgroup() {
  return request({
    url: "/achievement/all/group",
    method: "get",
  });
}

// 分页获取个人所有成果列表
export function getAllpage(query) {
  return request({
    url: "/achievement/all/page",
    method: "get",
    params: query,
  });
}
